package com.ai.bitcoin.constant;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class WeiXinPayContants {
    public static String APPID;
    public static String MCH_ID;
    public static String WEIXIN_PARAM_KEY;
    public static String APPNAME="价值区块链";
    public static final String DEVICE_INFO = "";
    public static final String SIGN_TYPE = "";
    public static final String NOTIFY_URL = "";


    /**
     * weixin response field
     */
    public static final String RETURN_CODE_SUCCESS = "SUCCESS";
    public static final String RETURN_CODE_FAIL = "FAIL";

    public static final String RESULT_CODE_SUCCESS = "SUCCESS";
    public static final String RESULT_CODE_FAIL = "FAIL";

    @Value("${app.id}")
    public void setAPPID(String appId) {
        APPID = appId;
    }
    @Value("${mch.id}")
    public void setMchId(String mchId) {
        MCH_ID = mchId;
    }
    @Value("${weixin.param.key}")
    public void setParamKey(String paramKey) {
        WEIXIN_PARAM_KEY = paramKey;
    }
}
